<div nz-row>
  <div nz-col nzSpan="10" style="min-height: 300px;border-right: 1px solid #e8e8e8;padding-right: 20px;">
    <dhl-button name="新增菜单" icon="plus" (buttonClick)="addMenu()" [disabled]="menuBtnDisable"
                style="position: absolute; right: 0px;z-index: 1;"></dhl-button>
    <dhl-button name="新增权限" icon="plus" (buttonClick)="addAction()" [disabled]="actionBtnDisable"
                style="position: absolute; right: 116px;z-index: 1;"></dhl-button>

    <dhl-tree #menuTree
              [value]="menuValue"
              [domain]="'menu,action'"
              [rootCode]="menuRootCode"
              [maxHeight]="400"
              (valueChange)="nodeChangeClick($event)"
    ></dhl-tree>
  </div>
  <div *ngIf="showMenu" nz-col nzSpan="12" style="min-height: 300px;">
    <dhl-menu-form #menuForm></dhl-menu-form>
    <div class="text-center" style="margin-top: 30px;margin-top: 30px;">
      <dhl-confirm-button name="删除菜单"
                          [content]="menuConfirm"
                          [type]="btnTypeGray"
                          [icon]="'delete'"
                          [disabled]="menuSaveBtnDisable"
                          (okClick)="deleteMenuClick()"></dhl-confirm-button>
      <dhl-submit-button [elementRef]="menuFormRef"
                         [submitUrl]="'menu/save'"
                         [disabled]="menuSaveBtnDisable"
                         (afterSubmit)="saveMenu()"></dhl-submit-button>
    </div>
  </div>
  <div *ngIf="!showMenu" nz-col nzSpan="12" style="min-height: 300px;">
    <dhl-action-form #actionForm></dhl-action-form>
    <div class="text-center" style="margin-top: 30px;margin-top: 30px;">
      <dhl-confirm-button name="删除权限"
                          [content]="actionConfirm"
                          [type]="btnTypeGray"
                          [icon]="'delete'"
                          [disabled]="actionSaveBtnDisable"
                          (okClick)="deleteActionClick()"></dhl-confirm-button>
      <dhl-submit-button [elementRef]="actionFormRef"
                         [disabled]="actionSaveBtnDisable"
                         [submitUrl]="'action/saveAction'"
                         (afterSubmit)="saveMenu()"></dhl-submit-button>
    </div>
  </div>
</div>

